package com.chen.servicedriveruser.remote;

import com.chen.internalcommon.dto.ResponseResult;
import com.chen.internalcommon.response.TerminalResponse;
import com.chen.internalcommon.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenLiuPing
 **/
@FeignClient("service-map")
public interface ServiceMapClient {
    /**
     * 创建终端
     */
    @PostMapping("/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam String name, @RequestParam String desc);

    /**
     * 创建轨迹
     */
    @PostMapping("/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}
